FROM openjdk:8-jre-alpine
MAINTAINER dcy "1540770111@qq.com"
COPY gateway-demo.jar /app.jar
RUN sh -c 'touch /app.jar'
VOLUME /tmp
EXPOSE 8083
# 修改spring环境变量
ENV JAVA_OPTS=""

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]